package com.k.designpattern.singleton.innerclass;

public class MyObject{
    private MyObject(){}
    private static class Holder{
        private static final MyObject INSTANCE = new MyObject();
    }
    public static MyObject getInstance(){
        return Holder.INSTANCE;
    }
}
